/**
 * Project Name:SimonFramework
 * File Name:BitmapDisplayer.java
 * Package Name:com.simon.framework.image.core.display
 * Date:2016-5-19 下午3:50:52
 * Copyright (c) 2016, simon@cmonbaby.com All Rights Reserved.
 */
package com.cmonbaby.images.core.display;

import android.graphics.Bitmap;

import com.cmonbaby.images.core.assist.LoadedFrom;
import com.cmonbaby.images.core.imageaware.ImageAware;

/**
 * <p>Author:      Simon
 * <p>QO:          8950764
 * <p>Email:       simon@cmonbaby.com
 * <p>WebSize:     https://www.cmonbaby.com
 * <p>Version:     1.0.0
 * <p>Date:        2020/12/29
 * <p>Description: 可以将某些更改应用于位图或任何显示位图的动画。实现必须是线程安全的。
 */
public interface BitmapDisplayer {

    /**
     * Displays bitmap in {@link com.cmonbaby.images.core.imageaware.ImageAware}.
     * <b>NOTE:</b> This method is called on UI thread so it's strongly recommended not to do any heavy work in it.
     *
     * @param bitmap     Source bitmap
     * @param imageAware {@linkplain com.cmonbaby.images.core.imageaware.ImageAware Image aware view} to
     *                   display Bitmap
     * @param loadedFrom Source of loaded image
     */
    void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom);

}

